var fs = require('fs')
const path = require("path")
fs.writeFile('zyr.txt','大家好，我是张雨荣',err => {
    if(err) {
        throw err;
    }
    let lj = path.join(__dirname,'zyr.txt')
    let zyr = fs.readFileSync(lj,'utf8')
    console.log(zyr);
})